package com.kila.aop;


import org.springframework.aop.ThrowsAdvice;

import java.lang.reflect.Method;

/**
 *
 * 异常通知类
 */
public class LogException implements ThrowsAdvice {

    public void afterThrowing(Method method, Object[] args, Object target, Throwable ex){
        System.out.println("异常通知- 方法："+method.getName()+"--目标类"+target+"参数个数"+args.length);
    }

}
